package com.sunyard.manage.client.fallback;

import com.sunyard.constant.AdminResult;
import com.sunyard.constant.Dict;
import com.sunyard.constant.PageResp;
import com.sunyard.manage.client.AuthorizationClient;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author zih.sun
 */
@Component
public class AuthorizationFallBack implements AuthorizationClient {

    @Override
    public Object fetchToken(Map<String, String> map) {
        System.out.println("到底发生了什么========");
        PageResp<Dict> res = new PageResp<>();
        res.setResult(AdminResult.INTERNAL_ERROR);
        return res;
    }

    @Override
    public Object refreshToken(Map<String, String> map) {
        PageResp<Dict> res = new PageResp<>();
        res.setResult(AdminResult.INTERNAL_ERROR);
        return res;
    }

}
